package com.heima.model.comment.dtos;
import lombok.Data;
import java.util.Date;
@Data
public class CommentRepayDTO {
    /**
     * 评论id
     */
    private String commentId;
    private Integer size;
    // 最小时间
    private Date minDate;

    public void tryCorrectParams() {
        if (this.size == null ||  this.size <= 0) {
            this.size = 10;
        }
        if(this.minDate== null){
            this.minDate = new Date();
        }
    }
}